package com.xiaolong.web.config;

import com.xiaolong.web.handler.ApiResponseBodyHandler;
import com.xiaolong.web.handler.MessageConverter;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

@AutoConfiguration
@Import(MessageConverter.class)
public class WebApplicationAutoConfiguration{

    @Bean
    public ApiResponseBodyHandler apiResponseBodyHandler(){
        return new ApiResponseBodyHandler();
    }
}
